﻿using System;
using System.Web.UI.WebControls.WebParts;
using Eneta.Portal.Common;

namespace Eneta.Portal.NewsAndBlogs.WebParts
{
    public class BlogDetailViewWebPart : WebPart
    {
        protected override void CreateChildControls()
        {
            base.CreateChildControls();

            try
            {
                var control = Page.LoadControl("~/_controltemplates/BlogDetailViewControl.ascx");
                Controls.Add(control);
            }
            catch(Exception ex)
            {
                Logger.LogException(ex);
            }
        }
    }
}
